<?php if (!defined('THINK_PATH')) exit();?><div class="row">
    <div class="top">审核部>手机时长验证</div>
    <div class="content">
    <form class="form-horizontal" method="post">
        <div class="box">
            <!-- <h1><span>(标*为必填项)</span></h1> -->
            <div class="list-block">
                <div class="form-group">
                    <label for="rate" class="col-sm-2 control-label">手机号</label>
                    <div class="col-sm-10">
                      <input name="mobile" id="mobile" type="text" class="form-control" id="rate" >
                    </div>
                </div>

                <div class="form-group">
                    <label for="bank" class="col-sm-2 control-label">查询结果</label>
                    <div class="col-sm-10">
                      <textarea rows="3" class="form-control" name="remark" maxlength='20'></textarea>
                    </div>
                </div>

                <div class="form-group">
                    <div class="list-block" style="float: right;">
                        <input type="button" id="query-phone" class="button01" value="查看">
                        <input type="button" class="button01" value="重置">
                    </div>
                </div>
            </div>
        </div>
    </form>
    </div>
</div>

<script type="text/javascript">
    $('#query-phone').click(function(){

        var mobile = $('#mobile').val();

        $.ajax({
            type: "POST",
            url: "/Admin/Find/mobileLength",
            data:{mobile:mobile},
            success: function(msg)
            {
                obj_data = $.parseJSON(msg);
                console.log(obj_data);
                var target = 'textarea[name="remark"]';
                $(target).html(obj_data.msg);
            }
        });
    });
</script>